#include <stdio.h>
#include <stdlib.h>
#include "japi.h"
#include "project.h"


int main()
{
    int frame;
    int obj;

    if(j_start()<0)
    {
        printf("can't connect to server\n");
        exit(0);
    }

    frame   = j_frame("Modules");
    j_setsize ( frame, 600, 600);
    j_setcolorbg ( frame , 200 , 200, 200 );

    j_show(frame);

    while(1)
    {
        obj =  j_nextaction();
        if(obj == frame)
        {
            //if frame number or quit pressed
            break;
        }


    }



    j_quit();
    exit(0);
}
